package com.hiep.connect.server.dao;

import java.util.List;

import com.googlecode.objectify.Query;
import com.hiep.connect.shared.MyUser;

public class MyUserDao extends DAO {
	public void save(MyUser user) {
		ofy().put(user);
	}

	public void delete(MyUser user) {
		ofy().delete(user);
	}

	public MyUser find(MyUser user) {
		MyUser find = ofy().find(MyUser.class, user.getEmail());
		return find;
	}

	public List<MyUser> getAll() {
		Query<MyUser> query = ofy().query(MyUser.class);
		return query.list();
	}

}
